package org.bing.engine.console.service;

import java.util.List;

import org.bing.engine.core.domain.Domain;

public class DomainManager extends AbstractHibernateManager {

    public void save(Domain domain) {
        template.saveOrUpdate(domain);
    }
    
    @SuppressWarnings("unchecked")
    public List<Domain> findAll() {
        List<Domain> list = template.find("select t from Domain t");
        return list;
    }
}
